package com.xc.c1

import scala.io.StdIn

object T2 {

  def main(args: Array[String]): Unit = {
    val a: Int = 1;

//    val b: Long = sayHello

    println("请输入：")
    val in = StdIn.readLine
    println("输入内容：" + in)

    println("-----------------------")

    val u = StdIn.readInt
    val res1 = if (u < 10) {
      "小于10"
    } else if (u < 20) {
      100
    }
    println("res1 得到的分数 :" + res1)
  }

  //  nothing
  def sayHello: Nothing = {
    throw new Exception("xxx")
  }

}
